import {
    GETSONGLIST
} from "../constants";

// 存储所有歌手信息
const INITVAL = [];
export default (prestate = INITVAL, action) => {
    const {
        type,
        data
    } = action;
    switch (type) {
        case GETSONGLIST:
            return [...prestate,data]
            break;
        default:
            return prestate
            break;
    }
}